﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace Back_end.APIModels
{
	// 用作 AccountController 操作的参数的模型。

	public class AddExternalLoginBindingModel
	{
		[Required]
		[Display(Name = "外部访问令牌")]
		public string ExternalAccessToken
		{ get; set; }
	}

	public class AuthBindingModel
	{
		[Required]
		public string Id
		{ get; set; }

		[Required]
		public string RealName
		{ get; set; }
	}

	public class RegisterExternalBindingModel
	{
		[Required]
		[Display(Name = "电子邮件")]
		public string Email
		{ get; set; }
	}

	public class RemoveLoginBindingModel
	{
		[Required]
		[Display(Name = "登录提供程序")]
		public string LoginProvider
		{ get; set; }

		[Required]
		[Display(Name = "提供程序密钥")]
		public string ProviderKey
		{ get; set; }
	}
}